package com.bm.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * 
 * @TableName ejyy_pet
 */
@TableName(value ="ejyy_pet")
@Data
public class EjyyPet implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private Long wechatMpUserId;

    /**
     * 
     */
    private Long communityId;

    /**
     * 1 狗
     */
    private Boolean petType;

    /**
     * 
     */
    private String name;

    /**
     * 1 公 0 母
     */
    private Byte sex;

    /**
     * 
     */
    private String photo;

    /**
     * 毛色
     */
    private String coatColor;

    /**
     * 
     */
    private String breed;

    /**
     * 
     */
    private String petLicense;

    /**
     * 
     */
    private Long petLicenseAwardAt;

    /**
     * 
     */
    private Boolean remove;

    /**
     * 
     */
    private Byte removeReason;

    /**
     * 
     */
    private Long removedAt;

    /**
     * 
     */
    private Long createdAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EjyyPet other = (EjyyPet) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getWechatMpUserId() == null ? other.getWechatMpUserId() == null : this.getWechatMpUserId().equals(other.getWechatMpUserId()))
            && (this.getCommunityId() == null ? other.getCommunityId() == null : this.getCommunityId().equals(other.getCommunityId()))
            && (this.getPetType() == null ? other.getPetType() == null : this.getPetType().equals(other.getPetType()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getPhoto() == null ? other.getPhoto() == null : this.getPhoto().equals(other.getPhoto()))
            && (this.getCoatColor() == null ? other.getCoatColor() == null : this.getCoatColor().equals(other.getCoatColor()))
            && (this.getBreed() == null ? other.getBreed() == null : this.getBreed().equals(other.getBreed()))
            && (this.getPetLicense() == null ? other.getPetLicense() == null : this.getPetLicense().equals(other.getPetLicense()))
            && (this.getPetLicenseAwardAt() == null ? other.getPetLicenseAwardAt() == null : this.getPetLicenseAwardAt().equals(other.getPetLicenseAwardAt()))
            && (this.getRemove() == null ? other.getRemove() == null : this.getRemove().equals(other.getRemove()))
            && (this.getRemoveReason() == null ? other.getRemoveReason() == null : this.getRemoveReason().equals(other.getRemoveReason()))
            && (this.getRemovedAt() == null ? other.getRemovedAt() == null : this.getRemovedAt().equals(other.getRemovedAt()))
            && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getWechatMpUserId() == null) ? 0 : getWechatMpUserId().hashCode());
        result = prime * result + ((getCommunityId() == null) ? 0 : getCommunityId().hashCode());
        result = prime * result + ((getPetType() == null) ? 0 : getPetType().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getPhoto() == null) ? 0 : getPhoto().hashCode());
        result = prime * result + ((getCoatColor() == null) ? 0 : getCoatColor().hashCode());
        result = prime * result + ((getBreed() == null) ? 0 : getBreed().hashCode());
        result = prime * result + ((getPetLicense() == null) ? 0 : getPetLicense().hashCode());
        result = prime * result + ((getPetLicenseAwardAt() == null) ? 0 : getPetLicenseAwardAt().hashCode());
        result = prime * result + ((getRemove() == null) ? 0 : getRemove().hashCode());
        result = prime * result + ((getRemoveReason() == null) ? 0 : getRemoveReason().hashCode());
        result = prime * result + ((getRemovedAt() == null) ? 0 : getRemovedAt().hashCode());
        result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", wechatMpUserId=").append(wechatMpUserId);
        sb.append(", communityId=").append(communityId);
        sb.append(", petType=").append(petType);
        sb.append(", name=").append(name);
        sb.append(", sex=").append(sex);
        sb.append(", photo=").append(photo);
        sb.append(", coatColor=").append(coatColor);
        sb.append(", breed=").append(breed);
        sb.append(", petLicense=").append(petLicense);
        sb.append(", petLicenseAwardAt=").append(petLicenseAwardAt);
        sb.append(", remove=").append(remove);
        sb.append(", removeReason=").append(removeReason);
        sb.append(", removedAt=").append(removedAt);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}